package com.bigdata.movieticketapi.vo.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

@Data
public class MovieReqVO {
    @ApiModelProperty("电影名称（中文）")
    @NotBlank(message = "电影名称不能为空")
    private String chineseName;

    @ApiModelProperty("电影名称（英文）")
    @NotBlank(message = "电影名称不能为空")
    private String englishName;

    @ApiModelProperty("电影类型")
    private Integer type;

    @ApiModelProperty("评分")
    @NotBlank(message = "评分不能为空")
    private String score;

    @ApiModelProperty("主演")
    @NotBlank(message = "主演不能为空")
    private String actors;

    @ApiModelProperty("语言")
    @NotBlank(message = "语言不能为空")
    private String movieLanguage;

    @ApiModelProperty("时长")
    @NotBlank(message = "电影时长不能为空")
    private String duration;

    @ApiModelProperty("图片")
    private String images;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("上映时间")
    private LocalDateTime releaseTime;

    @ApiModelProperty("是否售卖")
    private Integer isSell;
}
